package com.cardone.platform.authority.dto;

import com.cardone.platform.authority.po.Permission;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;

import java.util.List;

/**
 * 许可
 *
 * @author yaohaitao
 */
@Getter
@Setter
@lombok.ToString(callSuper = true)
@Accessors(chain = true)
public class PermissionDto extends Permission {
    /**
     * 版本号
     */
    @Transient
    private static final long serialVersionUID = 401877580616868435L;
    /**
     * 项目代码
     */
    @Transient
    private String projectCode;
    /**
     * 项目名称
     */
    @Transient
    private String projectName;
    /**
     * 角色标识集合
     */
    private String roleIds;

    private String typeTypeCode;


    /**
     * 主动
     */
    @Transient
    private boolean active;

    private boolean checked;

    /**
     * 子集
     */
    @Transient
    private List<PermissionDto> childs;


}
